package com.hexorld.sprite;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Style;
import android.graphics.RectF;

import com.hexorld.core.Position;
import com.hexorld.core.UpdateFlag;

public class Node extends HSprite {

	public Node(Context context, int width, int height){
		super(context, width, height);
	}
	public Node(Context context, int width, int height, Position p) {
		super(context, width, height, p);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void draw(Canvas canvas) {
		updatePaint();
		canvas.drawRoundRect(new RectF(mDstRect), 2, 2, mPaint);
	}

	protected void updatePaint(){
		mPaint.setColor(0xFF0080C0);
		mPaint.setStrokeCap(Cap.ROUND);
		mPaint.setStrokeWidth(2);
		mPaint.setStyle(Style.FILL);
	}
	
	@Override
	public void update(UpdateFlag updateFlag) {

	}

}
